<?php
// +----------------------------------------------------------------------
// | Gallery图库视频库配置 v3.0.0
// +----------------------------------------------------------------------

return [
    'image' => [
        //允许上传格式
        'fileExt'  => 'jpg,png,gif,jpeg',
        //允许上传大小
        'filesize' => 10 * 1024 * 1024,
        //是否启用压缩
        'compress' => false,
        //压缩质量，建议0.5 ~ 1
        'percent'  => 0.3,
        //正则验证
        'regular'  => '/(3c25.*?28.*?29.*?253e)|(3c3f.*?28.*?29.*?3f3e)|(3C534352495054)|(2F5343524950543E)|(3C736372697074)|(2F7363726970743E)/is',
        //本地存储路径
        'local'    => app()->getRootPath() . 'public/uploads/image/',
        //对外路径
        'url'      => '/uploads/image/',
    ],
    'video' => [
        //允许上传格式
        'fileExt'  => 'mp4',
        //允许上传大小
        'filesize' => 50 * 1024 * 1024,
        //本地存储路径
        'local'    => app()->getRootPath() . 'public/uploads/video/',
        //对外路径
        'url'      => '/uploads/video/'
    ],
    //上传七牛云配置
    'qiniu' => [
        // 是否开启七牛云上传
        'open'      => false,
        // 七牛云accessKey
        'accessKey' => 'P-sHrNxzbcbZ2mwBVz0WF9FFhh7cFxk2c4jSheIO',
        // 七牛云secretKey
        'secretKey' => 'Pt2y0QUWCNvUsgQR4UJCC4ywmTbQTpyeeZgrf6YH',
        // 七牛云空间
        'bucket'    => 'jrd210823-video',
        // 七牛云空间绑定域名
        'domain'    => 'https://common.zhiju002.com/',
        // 上传请求域名，每个地区的域名不一致，请按手册查找>https://developer.qiniu.com/kodo/1671/region-endpoint-fq
        'uploadUrl' => 'http://up-z1.qiniup.com'
    ]

];
